<template>
  <div class="a">
    <scroll class="b">
      <div class="c">
        <div  @click="itemClick(item.maitKey)" class="item" v-for="(item, index) in leftList" :key="index">
          {{ item.title }}
        </div>
      </div>
    </scroll>
  </div>
</template>

<script>
import Scroll from "../../../components/common/scroll/Scroll.vue";
export default {
  components: { Scroll },
  name: "Catgoryleft",

  data() {
    return {
    };
  },
  computed:{
    
  },
  props: {
    leftList: {},
  },
  mounted() {},

  methods: {
    itemClick(key) {
      // console.log(key);
      // console.log(this.style);
      this.$emit('itemClick',key);
    },

  },
};
</script>

<style lang="css" scoped>
.a {
  height: calc(100vh - 49px);
  overflow: hidden;
  width: 25vw;
  /* display: inline-block; */
  float: left;
}
.b {
  height: calc(100vh - 49px);
}
.c {
  height: 240vw;
  overflow: hidden;
}
.item {
  display: block;
  height: 15vw;
  width: 25vw;
  line-height: 15vw;
  text-align: center;
  background: pink;
  border-bottom: 1px solid #eee;
}
.active{
  background: red;
}
</style>